package cn.org.alan.exam.mapper;

import cn.org.alan.exam.model.entity.Job;
import cn.org.alan.exam.model.entity.UserJobDetails;
import cn.org.alan.exam.model.vo.job.JobDetailsVo;
import cn.org.alan.exam.model.vo.job.UserJobDetailsVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;

/**
 * 说明：
 *
 * @Author Alan
 * @Version 1.0
 * @Date 2025/4/3 9:55 PM
 */
@Mapper
public interface UserJobDetailsMapper extends BaseMapper<UserJobDetails> {
    /**
     * 分页查询作业下回答的用户
     * @param page
     * @param jobId
     * @return
     */
    Page<JobDetailsVo> getJobDetails(Page<JobDetailsVo> page, Integer jobId);

    /**
     * 查询用户回答详情
     * @param jobId
     * @param userId
     * @return
     */
    UserJobDetailsVo getUserJobDetails(Integer jobId,Integer userId);

}
